package com.xbfinance.manager.pojo.dto;

/**
 * 分页参数
 */
public class AdminPageParam {
    //当前数量
    private Integer rows;
    //当前页
    private Integer page;
    public Integer getOffset(){
        return (page-1)*rows;
    }
    public AdminPageParam() {
    }

    public AdminPageParam(Integer rows, Integer page) {

        this.rows = rows;
        this.page = page;
    }

    public Integer getRows() {

        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    @Override
    public String toString() {
        return "AdminPageParam{" +
                "rows=" + rows +
                ", page=" + page +
                '}';
    }
}
